package ngat.oss.scheduling.auctions;

/** Event class for notification of award of contract.*/
public class ContractAwardEvent extends AuctionEvent {

    /** Agreed value of the contract.*/
    private Object value;

    /** */
    public ContractAwardEvent(long timeStamp, int auctionId, Object value) {
	super(timeStamp, auctionId);
	this.value = value;
    }

    /** Returns the agreed value of the contract.*/
    public Object getValue() { return value; }

    /** Returns a readable representation of this AuctionEvent.*/
    public String toString() { 
	return super.toString()+":[ContractAwarded, Value:"+value+"]";
 
	// e.g. AuctionEvent@1102293933:AX67B:[ContractAwarded, Value:30.0] etc
    }

}
